import React, { Component } from 'react'

export default class MessageList extends Component{
    render(){
        const perchat=this.props;
        const id=perchat[0];
        const touxiang_path=perchat[1];
        const sendtime=perchat[2];
        const message=perchat[3];

        console.log("IN MessageList:",id,touxiang_path,sendtime,message)
        return(
            <li>
                {/*<p>lalalalalalala</p>*/}
                <p>{id}</p>
                {/*<img src={touxiang_path}/>*/}
                <p>{sendtime}</p>
                <p>{message}</p>
            </li>
        )
    }
}